﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucRegional.ascx.cs" Inherits="DentScan2.WebApp.UC.ucRegional" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:UpdatePanel runat="server" ID="up">
    <ContentTemplate>
        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
                    <tr>
                        <td style="width: 50%;background-color: white;">
                            <p class="lbl">
                                Страна
                            </p>
                        </td>
                        <td style="text-align:left;">
                            <asp:DropDownList runat="server" ID="ddlCountry" AutoPostBack="True" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged" />
                            <asp:TextBox runat="server" ID="tbCountry" Visible="false" CssClass="inputNormal"/>
                            <asp:FilteredTextBoxExtender ID="ftCountry" runat="server" TargetControlID="tbCountry" FilterMode="ValidChars" ValidChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"></asp:FilteredTextBoxExtender>
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAddCountry" OnClick="ibAddCountry_Click" ImageUrl="~/Img/add.png" />
                            <asp:ImageButton runat="server" ID="bSaveCountry" Visible="false" ValidationGroup="vgCountry" OnClick="bSaveCountry_Click" ImageUrl="~/Img/ok.png" />
                            <asp:ImageButton runat="server" ID="bCancelCountry" Visible="false" OnClick="bCancelCountry_Click" ImageUrl="~/Img/cancel.png" />
                            <asp:RequiredFieldValidator ID="rfvCountry" runat="server" ControlToValidate="tbCountry" Display="Dynamic" EnableClientScript="False" ErrorMessage="Моля, въведете елемент" ValidationGroup="vgCountry"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 50%;background-color: white;">
                            <p class="lbl">
                                Област
                            </p>
                        </td>
                        <td style="text-align:left;">
                            <asp:DropDownList runat="server" ID="ddlDistrict" AutoPostBack="True" OnSelectedIndexChanged="ddlDistrict_SelectedIndexChanged" />
                            <asp:TextBox runat="server" ID="tbDistrict" Visible="false" CssClass="inputNormal"/>
                            <asp:FilteredTextBoxExtender ID="ftDistrict" runat="server" TargetControlID="tbDistrict" FilterMode="ValidChars" ValidChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"></asp:FilteredTextBoxExtender>
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAddDistrict" OnClick="ibAddDistrict_Click" ImageUrl="~/Img/add.png" />
                            <asp:ImageButton runat="server" ID="bSaveDistrict" Visible="false" ValidationGroup="vgDistrict" OnClick="bSaveDistrict_Click" ImageUrl="~/Img/ok.png" />
                            <asp:ImageButton runat="server" ID="bCancelDistrict" Visible="false" OnClick="bCancelDistrict_Click" ImageUrl="~/Img/cancel.png" />
                            <asp:RequiredFieldValidator ID="rfvDistrict" runat="server" ControlToValidate="tbDistrict" Display="Dynamic" EnableClientScript="False" ErrorMessage="Моля, въведете елемент" ValidationGroup="vgDistrict"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 50%;background-color: white;">
                            <p class="lbl">
                                Град/Село
                            </p>
                        </td>
                        <td style="text-align:left;">
                            <asp:DropDownList runat="server" ID="ddlCity" />
                            <asp:TextBox runat="server" ID="tbCity" Visible="false"  CssClass="inputNormal"/>
                            <asp:FilteredTextBoxExtender ID="ftCity" runat="server" TargetControlID="tbCity" FilterMode="ValidChars" ValidChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"></asp:FilteredTextBoxExtender>
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAddCity" OnClick="ibAddCity_Click" ImageUrl="~/Img/add.png" />
                            <asp:ImageButton runat="server" ID="bSaveCity" Visible="false" ValidationGroup="vgCity" OnClick="bSaveCity_Click" ImageUrl="~/Img/ok.png" />
                            <asp:ImageButton runat="server" ID="bCancelCity" Visible="false" OnClick="bCancelCity_Click" ImageUrl="~/Img/cancel.png" />
                            <asp:RequiredFieldValidator ID="rfvCity" runat="server" ControlToValidate="tbCity" Display="Dynamic" EnableClientScript="False" ErrorMessage="Моля, въведете елемент" ValidationGroup="vgCity"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
        <%--<asp:MultiView runat="server" ID="mv" ActiveViewIndex="0">
            <asp:View runat="server" ID="vShow">
                <table cellpadding="0" cellspacing="0" border="1" style="width: 100%;">
                    <tr>
                        <td style="width: 50%;"  style="background-color: white;">
                            <p class="lbl">
                                Страна
                            </p>
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlCountry" AutoPostBack="True" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged" />
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAddCountry" OnClick="ibAddCountry_Click" ImageUrl="~/Img/add.png" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 50%;"  style="background-color: white;">
                            <p class="lbl">
                                Област
                            </p>
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlDistrict" AutoPostBack="True" OnSelectedIndexChanged="ddlDistrict_SelectedIndexChanged" />
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAddDistrict" OnClick="ibAddDistrict_Click" ImageUrl="~/Img/add.png" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 50%;"  style="background-color: white;">
                            <p class="lbl">
                                Град/Село
                            </p>
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlCity" />

                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAddCity" OnClick="ibAddCity_Click" ImageUrl="~/Img/add.png" />
                        </td>
                    </tr>
                </table>
            </asp:View>
            <asp:View runat="server" ID="vNew">
                <table cellpadding="0" cellspacing="0" border="1">
                    <tr>
                        <td>
                            <asp:TextBox runat="server" ID="tb" />
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvTxt" runat="server" ControlToValidate="tb" Display="Dynamic" EnableClientScript="False" ErrorMessage="Моля, въведете елемент" ValidationGroup="vgRegional"></asp:RequiredFieldValidator>
                            <asp:ImageButton runat="server" ID="bSave" OnClick="bSave_Click" ImageUrl="~/Img/ok.png" />
                            <asp:ImageButton runat="server" ID="bCancel" OnClick="bCancel_Click" ImageUrl="~/Img/cancel.png" />
                        </td>
                    </tr>
                </table>
            </asp:View>
        </asp:MultiView>--%>

    </ContentTemplate>
</asp:UpdatePanel>
